package com.example.demo.navigation.reposiory;

import com.example.demo.navigation.bean.NavBean;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NavRepository extends JpaRepository<NavBean,Long>{

//    List<NavBean> findNavBeansByParentId(int id);
    List<NavBean> findNavBeansByTypeOrderBySort(int type, Sort sort);

}
